Actionmenu entry

 

To create an actionmenu entry write this in the init line or in a script

 

ame1=Jack AddAction ["New Action","Script.sqs"];

 

ame1 is the variable of the actionmenu entry

Jack is the name of the unit

AddAction is the command to create an actionmenu entry

New Action is the text you will see in the menu later

Script.sqs is the scriptfile who contains the script witch will be triggered

 

To delete an actionmenu entry use this

 

Jack RemoveAction ame1

 

Jack is the name of the unit

RemoveAction is the command to delete an actionmenu entry

ame1 is the variable of the actionmenu entry witch will be deleted